const ROOM_URL = {
  GET_ROOM_LIST: 'GET_ROOM_LIST'
};
const state = {
  roomlist: []
};
const getters = {
  getRoomList: state => state.roomlist
};
const actions = {
  getRoomList({ commit, state }) {
    let roomlist = [{ ID: 1, roomName: '房间1' },{ ID: 2, roomName: '房间2' }];
    commit(ROOM_URL.GET_ROOM_LIST, roomlist);
  }
};
const mutations = {
  [ROOM_URL.GET_ROOM_LIST](state, data) {
    state.roomlist = data;
  }
};
const roomlist = {
  state,
  getters,
  actions,
  mutations
};
export default roomlist;
